package _spring_test._aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @Author: huangya
 * @Date: 2020/5/3
 * @Description:
 */
@Aspect
public class AopAnnoBean {

    @Pointcut("execution(* _spring_test._aop.*.*(..))")
    private void pointcut(){}

    public void aopTest(){
        System.out.println("aopTest");
    }

    @Before(value="pointcut()")
    public void before(){
        System.out.println("before");
    }

    @After(value="pointcut()")
    public void after(){
        System.out.println("after");
    }

}
